<?php
/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
defined('IS_OK') or exit('Access Forbidden');
?>
<?php load::into('head'); ?>
<form action="<?php echo url::mpf('tag','tag','modify'); ?>" method="post" enctype="multipart/form-data">
<section class="main table">
  <aside>
    <div>
      <div class="head">
        <a class="button green" easy width="660" height="380" url="<?php echo url::mpf('tag','tag','edit'); ?>">
          <em class="fa fa-plus"></em>
          <font>添加标签</font>
        </a>
      </div>
      <table>
        <tbody>
          <tr>
            <th>选择</th>
            <th>标签名称</th>
            <th>文档数量</th>
            <th>操作</th>
          </tr>
          <?php
          foreach($data['list'] as $v){
          ?>
          <tr>
            <td width="48"><?php echo form::checkbox('id',null,null,array($v['id']=>null)); ?></td>
            <td>
              <?php echo $v['title']; ?>
              <small>[id: <?php echo $v['id']; ?>]</small>
            </td>
            <td width="108">&nbsp; <?php echo $v['amount']; ?></td>
            <td width="238">
              <a class="btnfa black" href="<?php echo $v['url']; ?>" target="_blank">
                <em class="fa fa-eye" title="浏览"></em>
              </a>
              <a class="btnfa tfa black" easy name="SEO设置" width="780" height="430" url="<?php echo url::mpf('tag','tag','seo',array('id'=>$v['id'])); ?>">
                <em class="fa fa-cog" title="SEO"></em>
              </a>
              <a class="btnfa tfa black" easy name="修改标签" width="660" height="360" url="<?php echo url::mpf('tag','tag','edit',array('id'=>$v['id'])); ?>">
                <em class="fa fa-pencil" title="修改"></em>
              </a>
              <a class="btnfa red delete" url="<?php echo url::mpf('tag','tag','delete',array('id'=>$v['id'])); ?>">
                <em class="fa fa-trash-o" title="删除"></em>
              </a>
            </td>
          </tr>
          <?php
          }
          ?>
        </tbody>
      </table>
    </div>
  </aside>
</section>

<section class="refer">
  <?php echo html::admpages($data['pages'],$data['total']); ?>
  <p>
    <a class="button green  checkall">
      <em class="fa fa-square"></em>
      <font>全选</font>
    </a>
    <a class="button green tfa nocheckall">
      <em class="fa fa-square-o"></em>
      <font>取消</font>
    </a>
    <a class="button red tfa delcheck" url="<?php echo url::mpf('tag','tag','delete'); ?>">
      <em class="fa fa-trash-o"></em>
      <font>删除</font>
    </a>
  </p>
</section> 
</form>
<?php load::into('foot'); ?>